package com.emmmya.ocs.modules.system.dao;

import com.emmmya.ocs.modules.system.entity.User;
import com.emmmya.ocs.common.base.BaseDao;
import org.springframework.data.jpa.repository.Query;

public interface UserDao extends BaseDao<User, Long> {
    User findByUsername(String username);

    @Query(value="SELECT id, create_by, create_time, del_flag, update_by, update_time, username, email, `name`, tel_phone, about_me FROM User  where username = ?1 ",nativeQuery = true)
    User findByUsernameP(String username);


}
